package com.huawei.xme.ch02.t15;

import java.util.concurrent.locks.ReentrantReadWriteLock;

/**
 * @author 黄后林
 * @date 2022-10-26 13:41:26
 * @note 程序员是用代码喂出来的
 */
public class Task01 {

    public static void main(String[] args) {

        check(102);



    }

    public static void check(int score){

        if(score>100 || score<0){
            System.out.println("Score is error!");
            return;
        }
        String rs="";
        switch (score/10){
            case 10:
            case 9:
                System.out.println("A");break;
            case 8:System.out.println("B");break;
            case 7:System.out.println("C");break;
            case 6:System.out.println("D");break;
            default:System.out.println("E");
        }

    }
}
